﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestBuildSubscription.BuildSubscriptionServiceReference;
using System.ServiceModel;

namespace TestBuildSubscription
{
    class Program
    {
        private class CallbackClass : IBuildSubscriptionServiceCallback
        {
            public void OnShowUI(string uiComponentURL)
            {
            }

            public void OnBuildMessage(string message)
            {
            }

            public void OnPercentComplete(float percentComplete)
            {
            }
        }

        static void Main(string[] args)
        {
            var serviceClient = new BuildSubscriptionServiceClient(new InstanceContext(new CallbackClass()));

            serviceClient.Subscribe(BuildEventType.AllEvents);

            Console.ReadKey();
        }
    }
}
